<?php
return array(
    'Default' => array(
        'allow' => RBAC_EVERYONE,
        'actions' => array(
            'index' => array('allow' => RBAC_EVERYONE,),
        ),),
    'edit' => array(
        'allow' => RBAC_HAS_ROLE,
        'actions' => array(
            'index' => array('allow' => 'admin, root',),
            'editvoice' => array('allow' => 'admin,root',),
            'showbysize' => array('allow' => 'admin,root',),
            'audio' => array('allow' => 'admin,root',),
        ),),
    'word' => array(
        'allow' => RBAC_EVERYONE,
        'actions' => array(
            'index' => array('allow' => 'admin, root',),
            'setcategory' => array('allow' => 'admin,root',),
        ),),
      'pic' => array(
        'allow' => RBAC_EVERYONE,
        'actions' => array(
            'index' => array('allow' => 'admin,root',),
            'list' => array('allow' => 'admin,root',),
            'create' => array('allow' => 'admin,root',),
            'edit' => array('allow' => 'admin,root',),
            'editintrash' => array('allow' => 'admin,root',),
        ),),
      'sentence' => array(
        'allow' => RBAC_EVERYONE,
        'actions' => array(
            'index' => array('allow' => 'admin,root',),
            'list' => array('allow' => 'admin,root',),
            'create' => array('allow' => 'admin,root',),
            'edit' => array('allow' => 'admin,root',),
            'editintrash' => array('allow' => 'admin,root',),
        ),),
     'explain' => array(
        'allow' => RBAC_HAS_ROLE,
        'actions' => array(
            'index' => array('allow' => 'admin,root',),
            'list' => array('allow' => 'admin,root',),
            'create' => array('allow' => 'admin,root',),
            'edit' => array('allow' => 'admin,root',),
            'editintrash' => array('allow' => 'admin,root',),
        ),),
    'user' => array(
        'allow' => RBAC_HAS_ROLE,
        'actions' => array(
            'index' => array('allow' => 'root',),
            'userlist' => array('allow' => 'root',),
            'adduser' => array('allow' => 'root',),
            'edituser' => array('allow' => 'root',),
            'deluser' => array('allow' => 'root',),
        ),),
    'role' => array(
        'allow' => RBAC_HAS_ROLE,
        'actions' => array(
            'index' => array('allow' => 'root',),
            'addrole' => array('allow' => 'root',),
            'editrole' => array('allow' => 'root',),
            'delrole' => array('allow' => 'root',),
        ),),
    'login' => array(
        'allow' => RBAC_EVERYONE,
        'actions' => array(
            'index' => array('allow' => RBAC_EVERYONE,),
            'login' => array('allow' => RBAC_EVERYONE,),
            'logout' => array('allow' => RBAC_HAS_ROLE,),
        ),),
    'search' => array(
        'allow' => RBAC_EVERYONE,
        'actions' => array(
            'index' => array('allow' => RBAC_EVERYONE,),
            'image' => array('allow' => RBAC_EVERYONE,),
            'mean' => array('allow' => RBAC_EVERYONE,),
            'sentence' => array('allow' => RBAC_EVERYONE,),
            'show' => array('allow' => RBAC_EVERYONE,),
            'showbysize' => array('allow' => RBAC_EVERYONE,),
        ),),
    'study' => array(
        'allow' => RBAC_EVERYONE,
        'actions' => array(
            'index' => array('allow' => RBAC_EVERYONE,),
            'image' => array('allow' => RBAC_EVERYONE,),
            'getword' => array('allow' => RBAC_EVERYONE,),
            'getwordbegin' => array('allow' => RBAC_EVERYONE,),
            'mean' => array('allow' => RBAC_EVERYONE,),
            'explain' => array('allow' => RBAC_EVERYONE,),
            'explainbyzh' => array('allow' => RBAC_EVERYONE,),
            'sentence' => array('allow' => RBAC_EVERYONE,),
            'show' => array('allow' => RBAC_EVERYONE,),
            'showbysize' => array('allow' => RBAC_EVERYONE,),
            'audio' => array('allow' => RBAC_EVERYONE,),
        ),),
);
